lib/sysroot: Add journal-msg signal
authorColin Walters <walters@verbum.org>
Fri, 4 Aug 2017 01:45:50 +0000 (21:45 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 10 Aug 2017 14:20:00 +0000 (14:20 +0000)
commitde153dea30ba8bb28a5dfafe9d0995224766df60
tree4697069402221b56340bed0cee2386925af4a24b
parent75bce24cb9417f9b8111ed689d3d9c2f4bec154f
lib/sysroot: Add journal-msg signal

This will allow us to drop the awful hack in rpm-ostree where we watch our own
stdout. In general, libraries shouldn't write to stdout.

Also we can kill the systemd journal wrapper code. There's some duplication at
each call site now...but it's easier than trying to write a `sd_journal_send()`
wrapper.

I was originally going to have this emit all of the structured data too as a
`GVariant` but decided it wasn't worth it right now.

Closes: #1052
Approved by: jlebon
Makefile-otutil.am
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/libotutil/ot-log-utils.c [deleted file]
src/libotutil/ot-log-utils.h [deleted file]
src/libotutil/otutil.h
src/ostree/ot-main.c